package com.dbManage.page.home;

import com.dbManage.dao.NoteDao;
import com.dbManage.entity.Note;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
public class HomeService {
    @Resource
    NoteDao noteDao;


    public List<Note> search(Note note) {
        return noteDao.search(note);
    }


    public List<Note> searchNewNote() {
        return noteDao.searchNewNote();
    }

}
